package ext

import model.IView

/**
 * Auth0r : lucus
 * Date   : 2019-04-17 22:58
 * E-mail : mcphilex1989@gmail.com
 * Phone  : 15652608401
 *
 */

fun IView.checkCollision(view: IView): Boolean {
    return checkCollision(x, y, width, height, view.x, view.y, view.width, view.height)
}